package com.kk.controller;

import com.kk.service.ProviderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 *  @author kevin
 *  @date: 2019/10/30 15:49
 *
 */

@RestController
public class ConsumerController {

    @Resource
    private ProviderService providerService;
    @GetMapping("consumer")
    public String consumer() {
        return providerService.provider();
    }

    @GetMapping("hello")
    public String hello() {
        return "我是服务消费者";
    }
}
